<template>
	<view class="item">
		<view class="pic" :style="{backgroundColor:navItem.bgCloor,width:size.picWidth + 'rpx',height:size.picHeight + 'rpx'}"><image :src="navItem.img" mode="heightFix" :style="{width:size.imgWidth + 'rpx',height:size.imgHeight+ 'rpx'}"></image></view>
		<view class="text"><text>{{navItem.title}}</text></view>
	</view>
</template>

<script>
	export default {
		name:"navItem",
		data() {
			return {
				
			};
		},
		props:['navItem','size']
	}
</script>

<style scoped>
.item{
   width: 100%;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
}
.pic{
	/* 自定义宽高 */
	/* width: 72rpx;
	height: 72rpx; */
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 60rpx;
}
image{
	/* 自定义宽高 */
	/* width:32rpx;
	height: 32rpx; */
}
.text{
	margin-top: 20rpx;
}
text{
	font-size: 22rpx;
}
</style>